<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.3.2">
  <bpmn:process id="conditionalEventProcess" isExecutable="true">
    <bpmn:startEvent id="StartEvent_1">
      <bpmn:outgoing>SequenceFlow_1sg9teg</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:sequenceFlow id="SequenceFlow_1sg9teg" sourceRef="StartEvent_1" targetRef="ExclusiveGateway_1tsz1z7" />
    <bpmn:parallelGateway id="ExclusiveGateway_1tsz1z7">
      <bpmn:incoming>SequenceFlow_1sg9teg</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_16jxkor</bpmn:outgoing>
      <bpmn:outgoing>SequenceFlow_17po2rt</bpmn:outgoing>
    </bpmn:parallelGateway>
    <bpmn:sequenceFlow id="SequenceFlow_16jxkor" sourceRef="ExclusiveGateway_1tsz1z7" targetRef="Task_0gpdrpl" />
    <bpmn:userTask id="Task_0gpdrpl" name="Before Condition">
      <bpmn:incoming>SequenceFlow_16jxkor</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_11fxs6k</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:sequenceFlow id="SequenceFlow_11fxs6k" sourceRef="Task_0gpdrpl" targetRef="Task_0dbs3y9" />
    <bpmn:subProcess id="Task_0dbs3y9">
      <bpmn:incoming>SequenceFlow_11fxs6k</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_1cikkse</bpmn:outgoing>
      <bpmn:startEvent id="StartEvent_1pcl2wx">
        <bpmn:outgoing>SequenceFlow_0boqnce</bpmn:outgoing>
      </bpmn:startEvent>
      <bpmn:sequenceFlow id="SequenceFlow_0boqnce" sourceRef="StartEvent_1pcl2wx" targetRef="Task_1v2uhg7" />
      <bpmn:endEvent id="EndEvent_0u93hgu">
        <bpmn:incoming>SequenceFlow_1al6v9b</bpmn:incoming>
      </bpmn:endEvent>
      <bpmn:sequenceFlow id="SequenceFlow_1al6v9b" sourceRef="Task_1v2uhg7" targetRef="EndEvent_0u93hgu" />
      <bpmn:subProcess id="Task_0lr0zgl" triggeredByEvent="true">
        <bpmn:sequenceFlow id="SequenceFlow_15q3x6b" sourceRef="StartEvent_1iqx60t" targetRef="Task_19cidxs" />
        <bpmn:userTask id="Task_19cidxs" name="Task after conditional start event">
          <bpmn:incoming>SequenceFlow_15q3x6b</bpmn:incoming>
          <bpmn:outgoing>SequenceFlow_0tr88aj</bpmn:outgoing>
        </bpmn:userTask>
        <bpmn:endEvent id="EndEvent_1qmxnmz">
          <bpmn:incoming>SequenceFlow_0tr88aj</bpmn:incoming>
        </bpmn:endEvent>
        <bpmn:sequenceFlow id="SequenceFlow_0tr88aj" sourceRef="Task_19cidxs" targetRef="EndEvent_1qmxnmz" />
        <bpmn:startEvent id="StartEvent_1iqx60t">
          <bpmn:outgoing>SequenceFlow_15q3x6b</bpmn:outgoing>
          <bpmn:conditionalEventDefinition>
            <bpmn:condition xsi:type="bpmn:tFormalExpression">${variable1 == 1}</bpmn:condition>
          </bpmn:conditionalEventDefinition>
        </bpmn:startEvent>
      </bpmn:subProcess>
      <bpmn:serviceTask id="Task_1v2uhg7" camunda:class="org.camunda.bpm.engine.test.bpmn.event.conditional.SetVariableOnConcurrentExecutionDelegate">
        <bpmn:incoming>SequenceFlow_0boqnce</bpmn:incoming>
        <bpmn:outgoing>SequenceFlow_1al6v9b</bpmn:outgoing>
      </bpmn:serviceTask>
    </bpmn:subProcess>
    <bpmn:endEvent id="EndEvent_0paxa9k">
      <bpmn:incoming>SequenceFlow_1cikkse</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:sequenceFlow id="SequenceFlow_1cikkse" sourceRef="Task_0dbs3y9" targetRef="EndEvent_0paxa9k" />
    <bpmn:sequenceFlow id="SequenceFlow_17po2rt" sourceRef="ExclusiveGateway_1tsz1z7" targetRef="Task_06l1ujn" />
    <bpmn:userTask id="Task_06l1ujn" name="Task with condition">
      <bpmn:incoming>SequenceFlow_17po2rt</bpmn:incoming>
    </bpmn:userTask>
    <bpmn:boundaryEvent id="BoundaryEvent_0k7z3jc" attachedToRef="Task_06l1ujn">
      <bpmn:outgoing>SequenceFlow_0hs4kzs</bpmn:outgoing>
      <bpmn:conditionalEventDefinition>
        <bpmn:condition xsi:type="bpmn:tFormalExpression">${variable == 1}</bpmn:condition>
      </bpmn:conditionalEventDefinition>
    </bpmn:boundaryEvent>
    <bpmn:endEvent id="EndEvent_0xhqyzz">
      <bpmn:incoming>SequenceFlow_0hs4kzs</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:sequenceFlow id="SequenceFlow_0hs4kzs" sourceRef="BoundaryEvent_0k7z3jc" targetRef="EndEvent_0xhqyzz" />
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="conditionalEventProcess">
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
        <dc:Bounds x="220" y="319" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="238" y="355" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1sg9teg_di" bpmnElement="SequenceFlow_1sg9teg">
        <di:waypoint xsi:type="dc:Point" x="256" y="337" />
        <di:waypoint xsi:type="dc:Point" x="292" y="337" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="274" y="322" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="ParallelGateway_0otzm8k_di" bpmnElement="ExclusiveGateway_1tsz1z7">
        <dc:Bounds x="292" y="312" width="50" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="317" y="362" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_16jxkor_di" bpmnElement="SequenceFlow_16jxkor">
        <di:waypoint xsi:type="dc:Point" x="317" y="312" />
        <di:waypoint xsi:type="dc:Point" x="317" y="218" />
        <di:waypoint xsi:type="dc:Point" x="387" y="218" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="332" y="265" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="UserTask_02k401u_di" bpmnElement="Task_0gpdrpl">
        <dc:Bounds x="387" y="178" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_11fxs6k_di" bpmnElement="SequenceFlow_11fxs6k">
        <di:waypoint xsi:type="dc:Point" x="487" y="218" />
        <di:waypoint xsi:type="dc:Point" x="525" y="218" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="506" y="203" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="SubProcess_0v0a584_di" bpmnElement="Task_0dbs3y9" isExpanded="true">
        <dc:Bounds x="525" y="61" width="550" height="313" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="EndEvent_0paxa9k_di" bpmnElement="EndEvent_0paxa9k">
        <dc:Bounds x="1162" y="200" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1180" y="236" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1cikkse_di" bpmnElement="SequenceFlow_1cikkse">
        <di:waypoint xsi:type="dc:Point" x="1075" y="218" />
        <di:waypoint xsi:type="dc:Point" x="1162" y="218" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1119" y="203" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_17po2rt_di" bpmnElement="SequenceFlow_17po2rt">
        <di:waypoint xsi:type="dc:Point" x="317" y="362" />
        <di:waypoint xsi:type="dc:Point" x="317" y="427" />
        <di:waypoint xsi:type="dc:Point" x="387" y="427" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="332" y="394.5" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="UserTask_0c93511_di" bpmnElement="Task_06l1ujn">
        <dc:Bounds x="387" y="387" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BoundaryEvent_0v2z8k1_di" bpmnElement="BoundaryEvent_0k7z3jc">
        <dc:Bounds x="414" y="449" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="432" y="485" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="EndEvent_0xhqyzz_di" bpmnElement="EndEvent_0xhqyzz">
        <dc:Bounds x="459" y="508" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="477" y="544" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_0hs4kzs_di" bpmnElement="SequenceFlow_0hs4kzs">
        <di:waypoint xsi:type="dc:Point" x="432" y="485" />
        <di:waypoint xsi:type="dc:Point" x="432" y="526" />
        <di:waypoint xsi:type="dc:Point" x="459" y="526" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="447" y="495.5" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="StartEvent_1pcl2wx_di" bpmnElement="StartEvent_1pcl2wx">
        <dc:Bounds x="655" y="105" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="673" y="141" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_0boqnce_di" bpmnElement="SequenceFlow_0boqnce">
        <di:waypoint xsi:type="dc:Point" x="691" y="123" />
        <di:waypoint xsi:type="dc:Point" x="750" y="123" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="721" y="108" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="EndEvent_0u93hgu_di" bpmnElement="EndEvent_0u93hgu">
        <dc:Bounds x="892" y="105" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="910" y="141" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1al6v9b_di" bpmnElement="SequenceFlow_1al6v9b">
        <di:waypoint xsi:type="dc:Point" x="850" y="123" />
        <di:waypoint xsi:type="dc:Point" x="892" y="123" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="871" y="108" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="SubProcess_08yej95_di" bpmnElement="Task_0lr0zgl" isExpanded="true">
        <dc:Bounds x="625" y="236" width="293" height="132" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_15q3x6b_di" bpmnElement="SequenceFlow_15q3x6b">
        <di:waypoint xsi:type="dc:Point" x="697" y="306" />
        <di:waypoint xsi:type="dc:Point" x="727" y="306" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="712" y="291" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="UserTask_16jpkmd_di" bpmnElement="Task_19cidxs">
        <dc:Bounds x="727" y="266" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="EndEvent_1qmxnmz_di" bpmnElement="EndEvent_1qmxnmz">
        <dc:Bounds x="856" y="288" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="874" y="324" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_0tr88aj_di" bpmnElement="SequenceFlow_0tr88aj">
        <di:waypoint xsi:type="dc:Point" x="827" y="306" />
        <di:waypoint xsi:type="dc:Point" x="856" y="306" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="842" y="281" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="ServiceTask_0c2uc5o_di" bpmnElement="Task_1v2uhg7">
        <dc:Bounds x="750" y="83" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="StartEvent_052sygi_di" bpmnElement="StartEvent_1iqx60t">
        <dc:Bounds x="661" y="288" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="679" y="324" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
